<template>
    <header>
        <div>
            <i class="iconfont icon-fanhui" @click="goBack"></i>
        </div>
        <div>
            <slot>
                <span>登录</span>
            </slot> 
        </div>
        <div>
            <i class="iconfont icon-home"></i>
        </div>
    </header>
</template>

<script>
    export default {
        methods:{
            goBack(){
                this.$router.back();
            }
        }
    }
</script>

<style lang="scss" scoped>
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 1.1733rem;
    color: #fff;
    background-color: #b0352f;
    i {
        padding: 0 .4rem;
        font-size: .5867rem;
    }
    span {
        font-size: .48rem;
    }
}
</style>